Questions tagged [fivem]

This tag is for questions related to the multiplayer modification FiveM for Grand Theft Auto V enabling you to play multiplayer on customized dedicated servers by Cfx.re.

173 questions
-1
votes
1 answer

bad argument #1 to 'for iterator' (table expected, got string)

have a data like this result = { [1] = { ["identifier"] = MMK18495,["vehicles"] = {"vehN":"Caracara 4x4","vehM":"caracara2","totals":3},["id"] = 1,} , [2] = { ["identifier"] = MMK18495,["vehicles"] = {"vehN":"Sandking…
VPSCoin
  • 129
  • 1
  • 1
  • 8
-1
votes
1 answer

How can i pass arguments from the client side to a server callback, store the data in a array and then send it back to the client

i want to send the vehicle variable from the client side to the server callback, and there, i will verifie if the person with the steam id owns the vehicle that he´s trying to open, if he does, then all of him owned cars plates are going to be saved…
-1
votes
1 answer

Why does my fivem code reads the if statement first then the MySQL.Async.fetchAll?

Hi guys i am trying to remove money from a database (updating it with a new value) when i buy an upgrade for my vehicle. However the code just doenst work because he first reads the if statement and only after the MySQL.Async.fetchAll. I hope…
-1
votes
1 answer

Set up a crontab to automatically start a FiveM server on a screen

I am trying to set up an automated crontab to start my FiveM servers usingtxAdmin. This is what I currently have: @reboot screen +set serverProfile FWRP_Server1 /[path]/run.sh @reboot screen +set serverProfile FWRP_Training +set txAdminPort 40121…
ConductorWon
  • 11
  • 1
  • 4
-1
votes
1 answer

putting css over image

I have a problem with HTML and CSS I can't put my notch over the image I used as a shell in FiveM. I have also tried to put it in one class it didn't work tried to put over the img src also didn't work any ideas? .notch { position: absolute; …
bro xoty
  • 1
  • 2
-1
votes
1 answer

FiveM 'then' expected near '='

Hello when i start the server and want to start doing illegal jobs this shows up brx-drugs/client/client.lua:50: 'then' expected near '=' and here is also a piece of the code Citizen.CreateThread(function() while true do …
bro xoty
  • 1
  • 2
-1
votes
1 answer

Lua not recognizing existent methods?

In my framework project that I'm creating, I have the following issue: I have a Player class with various methods, one of them being GetIdentifier(). I exported the ZMan namespace to be able to use it in other resources (as the game calls them), I…
-1
votes
1 answer

citizen:/scripting/lua/scheduler.lua:61: attempt to call a nil value (upvalue 'fn')

So the code error is this: Also, the lua code is used for FiveM-coding, using vRP as main framework. The error appeals a function that is on vRP, and the caller is a base-function from the artifacts. Even so, this is the code of the artifact that…
solo2k
  • 21
  • 3
-1
votes
1 answer

attempt to index a nil value items(help!)

so im gettin this error so i know theres something i probably gotta fix here but i have no idea how .thanks SCRIPT ERROR: @gcphone/server/server.lua:205: attempt to index a nil value (local 'items') CODE FROM LINE…
-1
votes
2 answers

Command that takes info from FiveM

I would like to build a command , in Node.js with Visual Studio Code, which will take data from FiveM and will show in a message how many players are online and if there is a Queue ! I will post an image and I will show what i mean: I am using a…
Koza Nostra
  • 195
  • 14
-1
votes
1 answer

FiveM server, table index is nil && attempt to index a nil value (local, xPlayer)

So i got some plugins for my server and keep getting these two errors. these are my two codes. 1: table index is nil, ESX.RegisterServerCallback('esx_weashop:requestDBItems', function(source, cb) MySQL.Async.fetchAll( 'SELECT * FROM…
Jay van Veen
  • 1
  • 1
  • 2
-2
votes
1 answer

I'm having trouble reading the sql output MySQL #1064

photo of the error `CREATE TABLE IF NOT EXISTS `adminpanel_bans` ( `banid` varchar(50) NOT NULL, `active` int NOT NULL DEFAULT '1', `bannedby` int NOT NULL, `userid` int NOT NULL DEFAULT '0', `license` varchar(50) CHARACTER SET SET utf8…
-2
votes
1 answer

ES_Extended locale.lua attempted to call string value

enter image description here enter image description here enter image description here i get this error everytime it tries to call the funtion _U and add the translated string to the esx:notification. pls help i am not that good att lua. locale.lua…
Jacob
  • 1
-2
votes
1 answer

vector3(...) argument 1 had type nil

I'm trying to run this 'script' in a game (FiveM), using modified framework (ESX(legacy)) and I get this error when try to do the function :( The code at the exact lines: function deleteLastObject(object_end, x, y, z) …
-2
votes
1 answer

How do I fix this this prison script lua

TxAdmin Log Server.lua file I have try'd to change the nummbers but I think in the Database is something wrong
1 2 3
11
12