Jump to content

xyz

Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by xyz

  1. xyz

    Problem with markers

    Works now, idk what did i do wrong
  2. xyz

    Problem with markers

    Works now, idk what did i do wrong
  3. xyz

    Problem with markers

    Dunno if I'm going crazy, that doesn't work either. ._.
  4. xyz

    Problem with markers

    Dunno if I'm going crazy, that doesn't work either. ._.
  5. xyz

    Problem with markers

    See my post please, also the setCameraTarget I tried that but couldn't get it working, can I have an example?
  6. xyz

    Problem with markers

    See my post please, also the setCameraTarget I tried that but couldn't get it working, can I have an example?
  7. xyz

    Problem with markers

    Still haven't got it working
  8. xyz

    Problem with markers

    Still haven't got it working
  9. 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]
  10. 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?
  11. 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?
  12. xyz

    Vehicle plate

    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?
  13. Ohh shit, thanks anyway!
  14. 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?
  15. Does that update it constantly when moving?
  16. 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?
  17. xyz

    Chat command

    I figured it out
  18. xyz

    Chat command

    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
  19. xyz

    Freezing

    Worked now, thanks!
  20. xyz

    Freezing

    None of these work like intended
  21. xyz

    Freezing

    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'
  22. xyz

    lock

    Thanks, it works.
  23. xyz

    lock

    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.
  24. xyz

    lock

    No I mean like not the current slot, get the AK from all of his weapons that he has. I tried using that but it only worked for the current weapon slot.
  25. xyz

    lock

    So I'm making a script but wondering how do I check if someone has a weapon, if he does then do something. For example, if someone does /ak, then if the someone has AK-47, something happens. Thanks in advance
×
×
  • Create New...