Jump to content

Mefisto_PL

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by Mefisto_PL

  1. Sorry for Off-Topic, but still I have this problem..
  2. So what I must use in your opinion ?
  3. showCursor (false, false) in first, but why you don't add everything to one window, example GUIEditor_Tab[1] = guiCreateTab("About us",GUIEditor_TabPanel[1], GUIEditor_Window[1])
  4. Using triggerServerEvent ?
  5. So how I must use it?
  6. https://community.multitheftauto.com/ind ... ls&id=4600
  7. Mefisto_PL

    GUI

    Why when the player hit the marker then gui is showed to everyone? .. function StripMarkerHit ( thePlayer, HitElement ) if isElementWithinMarker ( thePlayer, Strip_Marker ) then guiSetVisible ( StripWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) else guiSetVisible ( StripWindow, false ) showCursor ( false ) guiSetInputEnabled ( false ) end end addEventHandler ( "onClientMarkerHit", Strip_Marker, StripMarkerHit )
  8. Idk where is this line.. : c
  9. Yup. Did you see any code here? I save my data in server-side script..
  10. I fix that in another way, but thanks for help.
  11. Mefisto_PL

    Money...

    I've made a Money System.. When I quit or logout my cash is saved.. But when I have for example $666 and when I use takePlayerMoney ( blah blah blah 500 for example ) then I have $166, when I quit I have $666.. WHY?!
  12. I didn't send the full code but it's on first line points = getElementData ( getLocalPlayer(), "Points" )
  13. This is defined in server-side script function scorePoints ( ) call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Points") for theKey,thePlayer in ipairs(getElementsByType ( "player" )) do setElementData ( thePlayer, "Points", 0 ) end end addEventHandler ( "onResourceStart", getResourceRootElement(), scorePoints ) function createPoints ( ) setElementData ( thePlayer, "Points", 0 ) end addEventHandler ( "onPlayerJoin", getRootElement(), createPoints )
  14. Hi ! I would like to make player can jump in vehicle but if he has 50 points.. I made it but now script isn't working.. function Veh_Jump () local p_Vehicle = getPedOccupiedVehicle ( getLocalPlayer() ) if ( points >= 50 ) then if p_Vehicle and isVehicleOnGround ( p_Vehicle ) then local px, py, pz = getElementVelocity ( p_Vehicle ) setElementVelocity ( p_Vehicle, px, py, pz + 0.7 ) if ( points <= 50 ) then setElementVelocity ( p_Vehicle, px, py, pz ) end end end end bindKey("lshift","down",Veh_Jump) addCommandHandler("vehjump", Veh_Jump)
  15. Why it doesn't working?! This is in scoreboard_client.lua .. I want to make colored content but it doesn't working : C for key, column in ipairs( scoreboardColumns ) do local r, g, b, a = fromcolor( cContent ) if not useColors then r, g, b = 255, 255, 255 end local theX = x local content = scoreboardContent[index][column.name] if content and column.name == "name" then if useColors then r, g, b = getTeamColor( element ) end theX = x - s(3) local theX = x if content and column.name == "ping" then if getPlayerPing ( player ) == 0 then if useColors then r, g, b = 255, 0, 0 end end theX = x - s(3) end end
  16. window1 = guiCreateWindow(0,4,432,251,"ddsh",false) function deadplayer() guiSetVisible(window1,true) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), deadplayer) function mapstart() guiSetVisible(window1, false) end addEventHandler("onClientMapStopping", getLocalPlayer(), mapstart)
  17. Oh ! Thank you ! That's working ! ;D
  18. Guy it's a ped, but I want to change default skin to MY skin. ///EDIT I know only I can see that, but now for tests I teleport to this interior. In normal i set camera..
  19. I would like to set ped skin when I press the button, everything is okey, but ped skin isn't changed.. In debugscript is "Bad Argument".. Nothing to see
  20. Inaczej to zrozumiałem, myślałem że on chce zrobić inny serwer..
  21. DM chodzi o Deathmatch Race'owy czy zwykła strzelanka ?
  22. circle radar is maded by shaders
×
×
  • Create New...