Jump to content

OGF

Members
  • Posts

    111
  • Joined

  • Last visited

About OGF

  • Birthday 12/08/1994

Details

  • Gang
    Full Theft Auto
  • Location
    Chicago, USA
  • Interests
    Big booty hoes.

Recent Profile Visitors

806 profile views

OGF's Achievements

Sucka

Sucka (13/54)

0

Reputation

  1. onClientClick https://wiki.multitheftauto.com/wiki/OnClientClick 8th argument The example should give you an idea how it's done
  2. watup Chaz, how you been? What you could also do to update the panel playerlist on events such as onClientPlayerJoin, onClientPlayerQuit, and onClientPlayerChangeNick. That way when you have the panel opened it just updates it automatically instead of opening and closing just so it refreshes.
  3. OGF

    Head Rotation

    a Timer? are you crazy?
  4. viewtopic.php?f=91&t=63269&p=601460#p601460 bindKey unbindKey
  5. Someone already wrote a script for you on how to stop animations with spacebar. Use it and learn from it.
  6. addEvent ( "startWindow", true ) addEventHandler("startWindow", root, function() GUIEditor.window[1] = guiCreateWindow(166, 96, 545, 402, "credits", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.staticimage[1] = guiCreateStaticImage(16, 31, 152, 127, "banshee.png", false, GUIEditor.window[1]) end ) -- server function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) triggerClientEvent ( "startWindow", source ) end addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) what are you trying to do with the bindKey exactly?
  7. well that ruined the learning experience
  8. setPedAnimation(localPlayer,false) Just remember localPlayer = getLocalPlayer() ---this function is only used when you are scripting on the client side.
  9. That one is for the client. and I know it's working fine.
  10. function relax() setPedAnimation (localPlayer, "BEACH", "Lay_Bac_Loop") if isTimer ( hpTimer ) then return end hpTimer = setTimer ( function() if getElementHealth ( localPlayer ) < 200 then setElementHealth ( localPlayer, getElementHealth ( localPlayer ) + 10 ) else killTimer ( hpTimer ) end end, 10000, 0 ) end addCommandHandler ("relax", relax) Try this. as for the animation i'll leave that to you.
  11. @ bssol pls learn the difference between client and server you also liOneLMeSsIshoT. isPedDead is a server only function.... so you are running this script clientside
  12. You're not using this clientsided are you?
×
×
  • Create New...