Dice
Members-
Posts
103 -
Joined
-
Last visited
Everything posted by Dice
-
is it possible to replace a CJ blue bandana with a white one???? I got the white bandana txd
-
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
-
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 )
-
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.
-
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.
-
well, it is only for the people who quit once they got jailed, I dont think the number will be too high.
-
yes, but I never unload it, unless the resource stops, and if it starts it loads it. all its doing is saving it
-
oh, i'm not getting any errors if thats what u mean, but it is defined, on the top of my script.
-
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.
-
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>
-
No, it works fine, just wondering if that is how it is suppose to be.
-
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.
-
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
-
,hmm i will just use a table thanks.
-
like if i do /jail #Pai_[N] 10 then i do /jail Dik120 10 will that overwrite something?
-
Will this work if I jail multiple people.
-
--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?
-
That is awesome thank you~
-
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?
-
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
-
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
-
aight, thanks man!
-
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 ]