Jump to content

Little Help with one script


Timic

Recommended Posts

Hello i need help :D its easy to fix it here line:

  
addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), guishow) 
addCommandHandler ("rules", guishow) 
function hideWindow (player,key,kyestate) 
  guiSetVisible (DTAwnd,false) 
  showCursor (false,false) 
end 
  
function resourceStart () 
  bindKey ("p","down",hideWindow) 
  showCursor (true,true) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), resourceStart) 
addCommandHandler ("rules", resourceStart) 

when i write /rules not show me window why?

Link to comment
  • Discord Moderators

I would strongly advise you to stop copying other's clientside scripts, posting here and expecting us to fix it.

Instead, you should start learning yourself.

event handler and the added command is attached to a non existing function, there are no GUI made, but I don't know if you cut out that part on purpose.

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

    • No registered users viewing this page.
×
×
  • Create New...