Jump to content

#Black_Hawk

Members
  • Posts

    28
  • Joined

  • Last visited

Details

  • Gang
    Gang

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

#Black_Hawk's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. i putted 5 seconds just for example, but i want it even when i use a bigger number like 1 minute or 5 .. etc how to make it synced to new players ?
  2. no i meant the timer of destroying the ped
  3. ok but how is the timer gonna be updated ? is it like triggering event every second ? that will cause lag
  4. hello guys i have a little question let's say i created a ped and when i create the ped there will be a trigger to create this ped to all players and with a timer to destroy this ped so how to make it synced for the new players ? like when i create the ped to all players at the server it works but how to make it working even when a new player enters the server ? with the same timer count i know that i can create a ped on server side, but i want to know how to make synced on client side codes: addCommandHandler ("ped", function () local x, y, z = getElementPosition (localPlayer) triggerServerEvent ("createPed", localPlayer, x, y, z) end ) addEvent ("pedCreated", true) addEventHandler ("pedCreated", root, function (x, y, z) local ped = createPed (7, x, y, z) setTimer (function (ped) destroyElement (ped) end, 5000, 1, ped) end ) addEvent ("createPed", true) addEventHandler ("createPed", root, function (x, y, z) triggerClientEvent (root, "pedCreated", source, x, y, z) end ) and let's say that i killed the ped, and if the ped died it will be destroyed to all players that can see the ped, but how about new players
  5. i used like this: files/skin.txd and also like this: :Models/files/skin.txd nothing works
  6. no it's exists and it defined in the meta nothing wrong but i got that error always here is the meta: <meta> <info name="" description="" type="script" version="1.0" /> <script src="models.lua" cache="false" type="client"/> <file src="files/skin.txd" download="false" /> </meta>
  7. hello guys i'm trying to download a file from other resource like using exports to download the file calling downloadFile from other resource, but i always get the error: file not exists why i get that error ? codes of the call: function download (file) downloadFile (file) end codes of calling: addEventHandler ("onClientResourceStart", resourceRoot, function () exports["file"]:download ("files/skin.txd") end )
  8. Hello guys, I'm having a little problem with this code, The problem is when every new object created it should give it new valid it that is not used by another object the id will be Number. NOTE: i'm using a 'split' cause i need it in the whole code. My code: local object = createObject (3095, 1557.835, 1575.586, 10.820) setElementID (object, "1,Object") function getFreeID () local id = 0 for _,v in ipairs (getElementsByType ("object", resourceRoot)) do local data = split (getElementID (v), ",") for i = 0, #getElementsByType ("object", resourceRoot) + 1 do if (data[1] == i) then id = id + 1 end end end return id end
  9. hello guys .. i was wondering how to make the marker clickable ? by using 'onClientClick' or other ways that may be valid i know there is a lot of ways to make it by attaching objets or peds or whatever to the marker but i want to know if there is a way to make it clickable without attaching anything to it ?
  10. thanks for this tip thanks a lot
  11. i don't know how to thank you thanks a lot now i'm gonna try to make this gui bigger a little bit i hope it's not gonna be messed
  12. i don't want to use that i want moveable
  13. really thanks but there is this problem when moving the gui to any other position and try to warp to a place you can see it's not working correctly so the gui needs to be in one place only and not be moved to anywhere .. so the last code that probleem wasn't there
×
×
  • Create New...