Jump to content

Send something to the server-side


Recommended Posts

Hi all,

 

I'm busy with a trucker job resource for my server.

But i have a problem with hiding the marker and blip when the player get's out of the truck.

The markers are created at the client-side but i have no idea how i could send the marker and blip to the server-side (to hide).

Client-side:

addEventHandler("onClientVehicleExit", root,
    function(thePlayer)
		local Truck = getPedOccupiedVehicle ( thePlayer )
		if Truck and getElementModel(Truck) == 403 then
		
		end
    end
)

Server-side:

function HideBlipMarker ( thePlayer )
	setElementVisibleTo ( *Marker, thePlayer, false )
	setElementVisibleTo ( *Blip, thePlayer, false )
end

Can somebody help me please :)

Link to comment

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...