xyz
Members-
Posts
78 -
Joined
-
Last visited
Everything posted by xyz
-
Works now, idk what did i do wrong
-
Works now, idk what did i do wrong
-
Dunno if I'm going crazy, that doesn't work either. ._.
-
Dunno if I'm going crazy, that doesn't work either. ._.
-
See my post please, also the setCameraTarget I tried that but couldn't get it working, can I have an example?
-
See my post please, also the setCameraTarget I tried that but couldn't get it working, can I have an example?
-
Still haven't got it working
-
Still haven't got it working
-
function vctint(player) if isPedInVehicle(player) == true then cancelEvent() else setElementInterior(player, 5) setElementDimension(player, 1) setElementPosition(player, 225.0107421875, -8.0927734375, 1002.2109375) setElementRotation(player, 0, 0, 90, "default", true) setCameraTarget(player) end end addEventHandler("onMarkerHit", vctIn, vctint) So, when I'm trying to enter the marker it works all fine, but with a vehicle it still enters and outputs an error. I can't find a way to fix it. Bad argument @ 'isPedInVehicle' [Expected ped at argument 1, got vehicle]
-
Hi. I'm currently making a login panel, it's all done except that it misses a 'remember password & acc' capability. So, how can I make that?
-
function editObj(btn, state, clickElem) addEventHandler("onPlayerClick", getRootElement(), editObj) function delObj(player) addCommandHandler("delobj", delObj) These are the functions. I need to get clickElem from editObj to delObj, how?
-
function plate(player, cmdName, text) local acc = getPlayerAccount(player) local accn = getAccountName(acc) local occveh = getPedOccupiedVehicle(player) if occveh then if getElementData(occveh, "vehsAcc") == accn and text then -- This checks if the vehicle is the player's personal veh. If you're wondering setVehiclePlateText(occveh, text) outputChatBox("Plate text changed!", player, 0, 255, 0) else end outputChatBox("This isn't your personal vehicle!", player, 255, 0, 0) else outputChatBox("You must be in a vehicle to change the plate!", player, 255, 0, 0) end end addCommandHandler("plate", plate) The problem is, that when everything is correct it still outputs "You must be in a vehicle to change the plate!", how can I fix that?
-
So the thing is I can't get this working. function staffskin(player) if getPlayerTeam(player) == "Staff" then cancelEvent() else end end addEventHandler("onElementModelChange", getRootElement(), staffskin) What's wrong?
-
Does that update it constantly when moving?
-
So I'm trying to make a speedometer, but how can I constantly get the speed of the car and have it update it in a text?
-
How does chatting via a command work? Like function chat(player, message) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then outputChatBox end end addCommandHandler("chat", chat) This is supposed to be an admin chat, what do i do next? It's supposed to output the text for all the admins
-
function freeze(player) local occveh = getPedOccupiedVehicle(player) if isPedInVehicle(player) == true then if isElementFrozen(occveh) == false then outputChatBox("Your vehicle has been frozen!", player, 79, 226, 249) setElementFrozen(occveh, true) else setElementFrozen(occveh, false) outputChatBox("Your vehicle has been unfrozen!", player, 79, 226, 249) elseif isElementFrozen(player) == true then outputChatBox("You have been unfrozen!", player, 79, 226, 249) else outputChatBox("You have been frozen!", player, 79, 226, 249) setElementFrozen(player, true) end end end addCommandHandler("freeze", freeze) Whats wrong here? I tried to fix it but it won't work. 61: 'end' expected to (to close 'if' at line 55) near 'elseif'
-
function removeak(player) takeWeapon(player, 30) end addCommandHandler("removeak", removeak) Here's the script I want it to check if the player has AK, if he has then remove it. If not, then output to chatbox that he doesn't have an AK. Could you make this into it? I don't really understand tables yet.
