JsK Posted July 15, 2019 Share Posted July 15, 2019 Hey guys , i have a code that is supposed to make a special skin id only slow walk ( like when you alt + z walk in gta:sa solo ) Problem is : it doesn't work Here's the codes : client.Lua function lsoslsolssolsos() if getElementData(getLocalPlayer(),"Sprints") == false then setElementData(getLocalPlayer(),"Sprints",true) else setElementData(getLocalPlayer(),"Sprints",false) end end bindKey("z","both", lsoslsolssolsos) setTimer(function() if getElementData(getLocalPlayer(),"logedin") then local data = fastsprintskin[getElementModel(getLocalPlayer())] local datas = nosprints[getElementModel(getLocalPlayer())] if data then if getPedControlState ( "aim_weapon" ) then return false end if isPedDucked(getLocalPlayer()) then return false end if getPedMoveState(getLocalPlayer()) == "jog" or getPedMoveState(getLocalPlayer()) == "walk" or getPedMoveState(getLocalPlayer()) == "walk" then return false end if getElementData(getLocalPlayer(),"Sprints") == true then if getPedControlState("sprint") == true then setPedControlState("sprint",data[1]) else setPedControlState("sprint",data[2]) end end end if datas then setElementData(getLocalPlayer(),"Sprints",datas[1]) end end end,50,0) and config.Lua : fastsprintskin = { [40] = {false,true}, [14] = {false,true}, [0] = {false,true}, [11] = {false,true}, [36] = {false,true}, [34] = {false,true}, [19] = {false,true}, [16] = {false,true}, [17] = {false,true}, [43] = {false,true}, [66] = {false,true}, [33] = {false,true}, [32] = {false,true}, [67] = {false,true}, [62] = {false,true}, [68] = {false,true}, } nosprints = { [267] = {false}, } So what is wrong ? please help Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now