Jump to content

Deltt

Members
  • Posts

    8
  • Joined

  • Last visited

Details

  • Gang
    The Dark Side

Deltt's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Hallo guys, i'm quite embarrassed to ask this but im rather confused because some things in my script wont work the way they're supposed to be..: If i do the triggerClientEvent function, does the event happen for every player or just for one? And how can i decide for which player this clientEvent should be triggered? Please dont ask me for the code, i guess code correction would just confusing more than i already am. For examle, if a player clicks the "spawn" button in my login gui, every other player is spawned too... i really dont get what i did wrong P.S. sorry for bad grammar
  2. "You can store the pickups on tables, defining there the variables for each." can someone give me a clue how i do that? unfortunately im not much into lua yet
  3. Hey there, another short question: is there a way to enable the pickups that lead you into the buildings like it is in the single player? I searched the whole wiki but i didnt find anything.
  4. What do you mean by that, Cadu12? I want it because i stored the coordinates where the pickup should teleport the player in my database, in the name of the pickup should be used to link the right pickups to the right coordinates. ???
  5. if i do this, the outputChatmessage shows me a "userdata.00000AD" or something...
  6. Hey there, i have short question: how can i make a variable (the "name" of the variable) into a string? Example: local variable1 = createPickup(x, y, z) How can i get the name "variable1" as a string? Greetings
  7. Hey there, i'm working on a script and i tried to spawn my player with spawnPlayer and set their cameras behind them with setCameraTarget, but it wont work. The player always looks to 0 / 360° for about 1 second, then he changes the direction into the rotation in the spawnPlayer command, without setting the camera with him. Does anyone know how to handle that? addEvent("SpawnPlayer", true) addEventHandler("SpawnPlayer", root, function() skin = getElementModel(client) if(getElementData(client, "Fraction")=="Civilian") then spawnPlayer(client, 1021.8951, -1051.8469, 31.6043, 70, skin) end elseif(getElementData(client, "Fraction")=="LSPD") then spawnPlayer(client, 246.4510, 66.7, 1003.7, 90, skin, 6) end setCameraTarget(client) end)
×
×
  • Create New...