
toxicsmoke11
Members-
Posts
232 -
Joined
-
Last visited
Everything posted by toxicsmoke11
-
i gave myself a hunter and it outputted nobody broke vehicle rule its not working
-
function securityCheck(thePlayer) setTimer(function() -- line 2 local sPlayer = getElementsByType("player") for i,v in ipairs(sPlayer) do if getPedOccupiedVehicle(thePlayer) == "425" then kickPlayer(thePlayer,"h4x0r hunter") else outputDebugString("nobody broke a vehicle rule") end end end end,10000,0) -- line 12 ) expected near line 12(at word 'end') to close line 2?what the fuck? its already closed why doesnt this work?help pls
-
change setWaterLevel ( water, 20 ) to setWaterLevel( 20, water )
-
well there are kids who just create meta and they steal scripts,even if encrypted,however making it encrypted with secret code,if they not verified resource becomes useless and it prevents them doing anything with it.however if they decrypt it,well if its decrypted,then fuck it but i doubt that some hacker will come in my server just to steal my resources and spread them around. however,thank you,your idea is awesome and i made it work,done some tests and it works fantastic thanks
-
would your idea work if made it this way? (another resource) when someone joins my server ("onPlayerJoin") it does this local dValue = 02340984375894375984334 -- could value be letters as well?e.g o3ui424h23i4u4 setElementData(source,"player.identification",dValue) and as onPlayerJoin event gets activated before onClientResourceStart, i could set the element data and then (protection resource) if getElementData(source,"player.identification",02340984375894375984334) then outputChatBox("Welcome to the Server!") else -- some code end i didnt add any functions or event handlers in this example,but would this thing work?
-
NeOx, more pics plzzzzzz
-
naked girl :3
-
local Whitelist = { ["080209AF2E09E389F6C55AFB6B5A5A54"] = true } addEventHandler("onPlayerConnect", root, function (_, _, _, serial) if (not Whitelist[serial]) then return cancelEvent(true, "You are not on the whitelist") end end end
-
see, i can't do that because,i need help with how to protect client side script,and i cant trigger any server event because the stealer probably wouldnt even make a server event...
-
neox why did u put ur nick to neox?
-
Max+, thats serverside script... i need to do this client-sided because server-side scripts can't be stolen
-
can anyone help?
-
I Wouldn't agree with you.
-
bilal is shy
-
Sigti, your version of code seems better but theres 1 problem which i just saw now onClientResourceStart activates when you join the server and download finishes so basically if i joined my server i could play without my loop thingy which freezes the server, but if someone else came in, it would freeze immediatly because he wouldnt pass the security. i really dont know which client event would be needed for this script. and i dont know which event would be the best for this. the event must be activated when the resource gets started by an admin and if admin is unauthorised by nickname and serial,freeze starts(i dont ask anyone to make freeze,just to help me with this event thing and checking just 1 person for nickname and serial) sorry if i didnt explain this well... i am losing ideas how could i make this without any bugs
-
i could use that later on as additional layer of protection,but i want to finish above thing first i just dont know how to kill timer in it
-
thanks, i have been messing up with code for a bit and i made pretty awesome protection out of it which would basically make game shitty incase its stolen,nvm that anyway i have set the timer to make things shitty if serial is not correct however at the moment if someone with different serial came into the game while im playing, whole game would look shitty because the timer would execute itself. however im wondering how could i kill the timer(unnamed one) so that this timer stops executing when serial gets confirmed for first time i have tried my best to explain what im doing,i will just give some lines which i done setTimer(function() -- unnamed timer -- function which will make $hit end,4500,2) -- in here im actually using big loop(code not shown) which executes itself twice under 9 secs elseif (getPlayerSerial() == "814C2B1B38A029CAR917428BCDD701C3" then -- if serial has been verified at first try killTimer() -- im stuck here,how do i kill an unnamed timer?theres possibility of making a named timer but i dont know will it work if i write it in middle of script,on wiki i seen that example only on endings of script i apologize for my english,i hope you understanded what i meant
-
Mini Advanced Map LLW
-
OMG I KNEW IT! HE WORKS FOR THE DEVIL Crime partner with the Devil e.e
-
homo
-
i didnt mean the whitelisted serial... in this topic i just gave random example to show an idea what im trying to do in first post lets say im the authorised person to run the resource and my serial is 814C2B1B38A029CAR917428BCDD701C3, i would be able to start resource but if i didnt have that serial,would the event be canceled and would the resource stay stopped?(loaded,but not running) something like this function checks() local sPlayer = getPlayerFromName("sga") if sPlayer then if getPlayerSerial(sPlayer) == "814C2B1B38A029CAR917428BCDD701C3" then outputChatBox("security check - passed",sPlayer) else cancelEvent() end end end addEventHandler("onClientResourceStart",root,checks) please note that i'd later on encrypt this script,so if someone tried to steal it(client side cache) it wouldn't run because 1) probably the person who run the resource wouldnt have name "sga" 2) the person wouldnt have my serial i dont know how to explain this differently,i hope u understanded. would cancelEvent() work tho? (in my code)
-
hello guys, i have made some random code and i would like to make this client sided but i dont know what to do if person is not authorized function checks() local sPlayer = getPlayerFromName("sga") if sPlayer then if getPlayerSerial(sPlayer) == "814C2B1B38A029CAR917428BCDD701C3" then outputChatBox("security check - passed",sPlayer) else --some code which would corrupt the resource or do something evil end end end addEventHandler("onClientResourceStart",root,checks) if you dont understand what i'm trying to do, i will try to explain. i am just practicing lua and i would like to make best protection for it as possible(in case of it being stolen, thats why this should be client side script,and ofc it would be encrypted&compiled later on) the problem i have is what to do when "else" part comes? i thought of stopResource(test) but thats server side function do you guys have any suggestions what i should put in else part?just so that the resource wouldnt work sorry if i ask for too much