Jump to content

Jumper_Mych

Members
  • Posts

    103
  • Joined

  • Last visited

Everything posted by Jumper_Mych

  1. Yes i copy code Solidsnake14 but is same my code alike youtube Solidsanke14 did you watching my youtube?
  2. your code doesn't work alike my youtube
  3. earlier my code is same doesn't work exit the lock and unlock and have problem Your code is doesn't work (alike me)
  4. Sit in vehicle can lock and unlock is work! but exit vehicle and go lock and unlock door vehicle doesn't work. I try sit in vehicle set lock and exit cant lock when error
  5. Error PNG-doesn't work BMP-doesn't work TGA-doesn't work
  6. Hi Vehicle Lock a Player bind key L is lock and unlock door vehicle but owner name can key unlock and lock door vehicle. example Jumper_Mych can press L (unlock and lock) because it is your own car. Obama Barack can't press L unlock and lock the vehicle because no owner vehicle. thanks for helping doesn't work vehicle = createVehicle ( 496, 2425, -55, 27, 0, 0, 0 ) setElementData(vehicle,"vehicle","car") setElementData(vehicle, "owner", "Jumper_Mych") function lockcar ( player ) if (getElementData(source, "vehicle" ) == "car") and ( getElementData(source, "owner" ) == getPlayerName(player) ) then if isVehicleLocked ( player ) then setVehicleLocked ( player, false ) else setVehicleLocked ( player, true ) cancelEvent() end end function bindLockOnSpawn ( theSpawnpoint ) bindKey ( source, "l", lockcar ) end addEventHandler ( "onPlayerSpawn", getRootElement(), bindLockOnSpawn ) If it works, delete my topic because your not allowed. Never hold my topic
  7. I have a question, Progress has 0% go to Marker and type /heal give you 1% for 10 sec. how ready 100% this 1 min for 1% at minus (99%). 0% this kill Marker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 )
  8. Problem gui have ERROR GUIEditor_Label = {} GUIEditor_Progress = {} function Progress () GUIEditor_Label[1] = guiCreateLabel(6,662,150,20,"0",false) GUIEditor_Label[2] = guiCreateLabel(5,736,150,20,"1",false) GUIEditor_Label[3] = guiCreateLabel(5,711,150,20,"h2",false) GUIEditor_Label[4] = guiCreateLabel(4,688,150,20,"Com3",false) GUIEditor_Progress[1] = guiCreateProgressBar(56,731,175,24,false) GUIEditor_Progress[2] = guiCreateProgressBar(56,656,175,24,false) GUIEditor_Progress[3] = guiCreateProgressBar(56,706,175,24,false) GUIEditor_Progress[4] = guiCreateProgressBar(56,681,175,24,false) guiLabelSetColor(GUIEditor_Label[1],255,135,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"default-bold-small") guiLabelSetColor(GUIEditor_Label[2],255,135,0) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) guiSetFont(GUIEditor_Label[2],"default-bold-small") guiLabelSetColor(GUIEditor_Label[3],255,135,0) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) guiSetFont(GUIEditor_Label[3],"default-bold-small") guiLabelSetColor(GUIEditor_Label[4],255,135,0) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) guiSetFont(GUIEditor_Label[4],"default-bold-small") guiProgressBarSetProgress(GUIEditor_Progress[1],100) guiProgressBarSetProgress(GUIEditor_Progress[2],100) guiProgressBarSetProgress(GUIEditor_Progress[3],100) guiProgressBarSetProgress(GUIEditor_Progress[4],100) end addCommandHandler ( "life", Progress ) [13:53:23] ERROR: Life\Progress.lua:6: attempt to call global 'guiCreateLabel' (a nil value) How create bindkey press R can open GUI, again press R to close gui
  9. https://community.multitheftauto.com/ind ... ls&id=1557
  10. https://community.multitheftauto.com/ind ... ils&id=732
  11. maybe finally, but next my work on code target doesn't work i New Topic
  12. Thanks you! 1/2 and 2/2 Close Topic No deleted, A beginner might be useful
  13. Weak code and doesn't work Topic to scrap But thanks you Solidsnake14 was first code work
  14. Which will work 1.setPlayerName 2.getPlayerName 3.getPlayerFromNick 4.getElementType 5.other (add me function)
  15. 1. I try change to setPlayerFromNick is doesn't work i change next setPlayerType but doesn't work it all doesn't work, unless my code are error 2.simply ask you, i want Vehicle is owned Jumper_Mych
  16. i can line 6 number is error but i change to getPlayerName or setPlayerName, getPlayerFromNick and getPlayerType i can't work it fixed by my code.
  17. doesn't work vehicle = createVehicle ( 496, 2425, -55, 27, 0, 0, 0 ) setElementData(vehicle,"vehicle","car") bes = setPlayerName ( car, "Jumper_Mych" ) function enterVehicle ( player, seat, jacked ) if (getElementData(source, "vehicle" ) == "car") and ( not bes[getPlayerName( player )] ) then outputChatBox ( "Vehicle owner: Jumper_Mych", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) I think that already 6 times but not help [09:45:13] ERROR: vehicle\mod8.lua:6: attempt to index global 'bes' (a boolean value) Error
  18. I have no issue, and still i think code
  19. 2/2 part vehicle = createVehicle ( 496, 2425, -55, 27, 0, 0, 0 ) setElementData(vehicle,"vehicle","car") bes = getElementType ( vehicle ) == "Jumper_Mych" function enterVehicle ( player, seat, jacked ) if (getElementData(source, "vehicle" ) == "car") and ( not bes[getElementModel( player )] ) then outputChatBox ( "Vehicle owner: Jumper_Mych", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) Doesn't work Player Can't get vehicle for Jumper_Mych and "Vehicle owner: Jumper_Mych" A Nick Jumper_Mych can enter vehicle. and Jumper_mych is in the vehicle ped can enter sit in vehicle.
  20. Thanks you! That My Topic is Very problem and hard work
  21. Sure error getElementModel maybe other to getElement...? Try Vehicle ID 496 are own Jumper_Mych and ID 496 is same but own James_Bonner try change to skin cops
×
×
  • Create New...