Jump to content

[Help]Fine script dont work


Desaster

Recommended Posts

hello it's agin me I have tryed to trigger a server event in a client resource to set wanted level but idk why it wont wor and this error appear : Bad Argument @ setPlayerWantedLevel pls help me I tryed so much thing but nothing has helped

the script work just the park when your wanted level must be set to 0 is broken :(

CODE REMOVED

Link to comment

This is the serverside script, it is not tested

addEvent('onPlayerPayfine', true) 
addEventHandler('onPlayerPayfine', root, 
function(thePlayer) 
    if( getPlayerWantedLevel( thePlayer ) > 0) then 
         setPlayerWantedLevel( thePlayer, 0) 
         outputChatBox( 'you have done the fine !!', thePlayer, 255, 255, 0, false ); 
    else 
         outputChatBox( 'An error occurred while fining !', source, 255, 0, 0, false ); 
    end 
end) 
  

Let me know if it works :D

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...