Jump to content

Dice

Members
  • Posts

    103
  • Joined

  • Last visited

Everything posted by Dice

  1. is it possible to replace a CJ blue bandana with a white one???? I got the white bandana txd
  2. Dice

    Replacing Skins

    Forgot to come back and say that it was the meta Yeah that was the issue figured it out hours ago =D you smart bastard! lol Thanks
  3. Dice

    Replacing Skins

    Its not working this is what i have assuming i have to replace https://wiki.multitheftauto.com/wiki/File:Skinid75.jpg addEventHandler("onClientResourceStart", resourceRoot, function() txd = engineLoadTXD("predaror.txd") engineImportTXD(txd,75) dff = engineLoadDFF("predaror.dff",75) engineReplaceModel(dff,75) end )
  4. Dice

    Replacing Skins

    What is that first parameter ? is that the filepath for where it is in the resource???? or in the gtasa folder if its the gta sa folder then i have no idea what it is.
  5. Dice

    Replacing Skins

    Hi, how the hell do i replace this https://wiki.multitheftauto.com/wiki/File:Skinid75.jpg with let's say a predator skin. the names of the predators predator.dff predator.txd i know what functions to use.. https://wiki.multitheftauto.com/wiki/EngineImportTXD and LOAD one put how the hell do i do it? how do i get the string filepath for that.
  6. Dice

    Jail save =\

    well, it is only for the people who quit once they got jailed, I dont think the number will be too high.
  7. Dice

    Jail save =\

    yes, but I never unload it, unless the resource stops, and if it starts it loads it. all its doing is saving it
  8. Dice

    Jail save =\

    oh, i'm not getting any errors if thats what u mean, but it is defined, on the top of my script.
  9. Dice

    Jail save =\

    it doesnt work,,, idk how to read all the crooks children and on top of that get all the attributes for them, yes i know which ones to use but idk how to set it up.
  10. Dice

    Jail save =\

    addEventHandler ( "onPlayerQuit", root, function() if getElementData ( source, "jailed" ) == true then cur_jails = xmlFindChild ( jaildata, "CurrentJails", 0 ) local crooks = xmlCreateChild ( cur_jails, "Crook" ) local left, x, e = getTimerDetails ( runningTimers[source][newTabPos] ) xmlNodeSetAttribute ( crooks, "name", getPlayerName ( source ) ) xmlNodeSetAttribute ( crooks, "serial", getPlayerSerial ( source ) ) xmlNodeSetAttribute ( crooks, "TimeLeft", left ) setElementData ( source, "jailed", false ) killTimer ( runningTimers[source][newTabPos] ) xmlSaveFile ( jaildata ) end end ) loadedCrooks = {} function joinData() local currentJails = xmlFindChild ( jaildata, "CurrentJails", 0 ) local currentCrooks = xmlNodeGetChildren ( currentJails ) if currentCrooks then for i, crook in ipairs ( currentCrooks ) do for name, value in ipairs ( xmlNodeGetAttributes ( crook ) ) do outputChatBox ( name .. " = " .. value ) end end end end addEventHandler ( "onPlayerJoin", root, joinData ) I have this script with the jail when a player quits and they are jailed, it creates something like this... <Crook name="sss" serial="xxxxxxxxxxxxxxxxxxxxxxxxxxxx" TimeLeft="149935"></Crook> <Crook name="avc" serial="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" TimeLeft="152974"></Crook> <Crook name="sccss" serial="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" TimeLeft="111436"></Crook>
  11. Dice

    Jail Timer

    No, it works fine, just wondering if that is how it is suppose to be.
  12. Dice

    Jail Timer

    line 20 why is [player] shouldnt that be jailedPlayer? i'm confused, i'm a noob at tables when it comes to this extent, I just dont get what is going on here.
  13. Dice

    Jail Timer

    I will try thanks
  14. Dice

    xml xml xml

    wow dumb me. thanks!
  15. Dice

    xml xml xml

    jaildata = xmlLoadFile ( "jails.xml" ) if jaildata then jaildat = xmlFindChild ( jaildata, "Jail Data", 0 ) cur_jails = xmlFindChild ( jaildata, "Current Jails", 0 ) history = xmlFindChild ( jaildata, "History Jails", 0 ) else jaildata = xmlCreateFile ( "jails.xml", "Jail Data" ) cur_jails = xmlCreateChild ( jaildata, "Current Jails" ) history = xmlCreateChild ( jaildata, "History Jails" ) end Why isn't this doing anything...server
  16. Dice

    Jail Timer

    ,hmm i will just use a table thanks.
  17. Dice

    Jail Timer

    like if i do /jail #Pai_[N] 10 then i do /jail Dik120 10 will that overwrite something?
  18. Dice

    Jail Timer

    Will this work if I jail multiple people.
  19. Dice

    Jail Timer

    --server function jailPlayer( player, cmd, target, ttime ) if isPlayerAdmin ( player ) then jailedPlayer = getPlayerFromName ( target ) if jailedPlayer then if getElementData ( jailedPlayer, "jailed" ) == false then if isPedInVehicle ( jailedPlayer ) then removePedFromVehicle ( jailedPlayer ) end local jx, jy, jz = unpack(jailcells[math.random(#jailcells)]) setElementDimension ( jailedPlayer, 60601 ) setElementInterior ( jailedPlayer, 12 ) setElementPosition ( jailedPlayer, jx, jy, jz ) setElementData ( jailedPlayer, "jailed", true ) triggerClientEvent ( root, "clientStartTimer", jailedPlayer, jailedPlayer ) else outputChatBox ( "This Player is already jailed!", player, 255, 0, 0 ) end else outputChatBox ( "Player does not exist!", player, 255, 0, 0 ) end end end addCommandHandler ( "jail", jailPlayer ) --client function startTimer ( jailedPlayer, ttime ) ttimef = ttime setTimer ( clientUnJail, ttimef, 1, localPlayer ) end addEvent ( "clientStartTimer", true ) addEventHandler ( "clientStartTimer", resourceRoot, startTimer ) function clientUnJail ( localPlayer ) triggerServerEvent ( "sUnJail", localPlayer ) end ---server function unjailPlayer ( jailedPlayer ) setElementData ( jailedPlayer, "jailed", false ) setElementDimension ( jailedPlayer, 0 ) setElementInterior ( jailedPlayer, 0 ) setElementPosition ( jailedPlayer, 2492.408, 2773.22, 10.80 ) end addEvent ( "sUnJail", true ) addEventHandler ( "sUnJail", root, unjailPlayer ) Hi, im trying to get the timer to work on this jail system can someoen help?
  20. That is awesome thank you~
  21. if I use this will it be synced for other players? what if u set someones position then reconnect? will they be at their old spot or the new position u set?
  22. Like it says in the topic title how do you get all the coordinates inside a colshape, is there a math or something i can use? like all the x values, y values, z values or better yet to make it easier, from one end of the col shape to the other end
  23. Dice

    setFPSLimit

    What are the pros and cons to setting the fpslimit to 60 or 80, does the server use more bandwidth, or lag more? what about setting it to 0 ? as in no FPS limit
  24. Question what if someone who has nothing to do with the arena spawns, and killer [ source ] is an element willl that effect the killers [ source ]
×
×
  • Create New...