Closed Taerarenai closed 5 years ago
I'll have a look tonight
I'll have a look tonight
Awesome. Let me know if you need more info.
Setting up a discord server for the repo would be a good idea if you plan to support it for a longer period of time (and since i haven't seen any other...it might get used quite a lot by JS devs for FiveM).
I have a Discord server https://discord.gg/SBwfEda
This was handled via the Discord. Turns out the issue creator was using
server_script "dist/index.js"
instead of client_script "dist/index.js"
Problem solved 👍
Ok so i'm trying the simple example command to spawn an adder (just for testing purposes) and i'm already encountering quite a few errors.
I'm not that new to JS, so i've tried like this (among other things such as
require
instead ofimport
)That throws a server error such as
IsModelAVehicle is not defined
pointing toModel.js isVehicle
The other thing i've tried was to clone the repo and use the example JS provided. That one is using an older version of the
fivem-js
lib, but i kept it as it is. While trying the command it throwsPlayerId is not defined
Any tips ?