Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. i mean, if you change z nothing happens? EDIT:probably the center of attach is not same point as from getElementPosition, but it should be. or this object itself has a big offset from center.
  2. this is more compact function getPlayerSpeed(player,mph) local multiplier=mph and 100 or 161 --in case mph argument is true, it will return speed in mph, else-kph local velX,velY,velZ=getElementVelocity(getPedOccuipiedVehicle(player) or player) return (velx^2+velY^2+velZ^2)^0.5*multiplier end use getPlayerSpeed(getLocalPlayer(),true/false), and it works clientside too.
  3. pffft ORGINAL HUD IS ON BY DEFAULT
  4. that some resource is running, and removing the hud try turning almost all res off(except the basic gamemode)
  5. settings will come after a time(such as pos, size(propably), show pickups, color change, so on), but i feel boring for making a gui and then syncing all the vars, so i give no prior to that.
  6. player obviously, object doesn't have a client -.-
  7. for the object that is one you should spawn on do setElementStreamable(obj,false)
  8. why attachElements(object,element,3,1,4,0,0,50) doesn't work?
  9. another progress update! *switched to Aiboforcen's epic blips, from bigradar res. *blip texts are fully working and functional!(gosh was so hard to make sure they don't go out of radar bounds) *pickups are now displayed! *zoom is now smooth fading in and out *solution for blocky hp and armor is found.
  10. please use tags! it helps a lot seeing isn't there a syntax error, etc.rx,ry,rz is not defined, and theres no object defined, use triggerClientEvent ("shark_key", getRootElement (),player)
  11. hes apparently running some res he doesn't know about.
  12. you need to set the money serverside, not clientside, for it to sync.
  13. a system that draws me a route from point A to point B in a map. i'd prefer that a ped would drive me there too.
  14. that is a straight line on client render together with 3 text labels, witch use 1function each, and findPlayer function. still not impressive, but i guess its okay for beginner
  15. karlis

    Big doubt..

    ipairs is basically used where order is needed, while pairs iterates tru table completely random, thus making it a good random generator too.
  16. 1)cant approve all of them are there 2)no idea
  17. they are the same, just in chat you type /commandname while in console without /
  18. karlis

    Login

    or you can set some variable to true for like 1sec after logging with gui, and if that variable is false, cancelEvent() the onPlayerLogin. canLogin={} function onLoggingWithGUI(player, .... ) --call this function when logging in canLogin[player]=true ... --do the standard login here setTimer(function(plyr) canLogin[plyr]=false end,1000,1,player) end addEventHandler("onPlayerLogin",getRootElement(),function() if not canLogin[source] then cancelEvent() outputChatBox("You can only login with GUI!",source,255) end end)
  19. don't use dots in file name.
  20. pX, pY, and/or pZ is false note that if its not nil it means syncing variables works, just one function in the other side returned false, not number(this mostly appears when trying to get some number out of function with invalid object pointer, or trying to get some ped's vehicle info while ped is on foot.)
  21. you could check public "interiors" resource for a bit of alternative ways of doing so. and, maybe attach the x,y,z to marker as element data, so you don't need to use the table?
  22. type "help" in console, and it'll show you all of them.
  23. no you just don't even understand the problem, but want ur post count up, face that.
×
×
  • Create New...