Jump to content

A question about vehicles :)


Recommended Posts

Posted

I was just wondering if there is anyway to make vehicles not dissapear when you log out? For example my mate makes a car, is there anyway for it to stay there even if he logs out?

Also, anyway for it to stay if I turn the server off??

Thanks :)

Posted

There is no function with that name, but there's a function to check if a player is logged in.

getPlayerAccount returns an account element from a player, if he/she is not logged in, it'll return the guest account.

Guest Guest4401
Posted
there's no function called isPlayerLoggedIn which check if the player logged in or not
isGuestAccount getPlayerAccount 

Posted
function Check(player) 
local account = getPlayerAccount ( player ) 
local guest = isGuestAccount ( account ) 
    if account == guest then 
      setElementDimension ( im too lazy FOR the cars TABLE, 5 ) 
     end 
end 
addEventHandler("onResourceStart", getRootElement(), Check) 

sorry that's the best i can do

good luck

:)

Posted

Castillo i like to help peoples like you and the others this code not tested and if that code is not alright you can fix it by a little quote

and you made me so sad by the way

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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