Jump to content

2 questions


K4stic

Recommended Posts

1. How to calculate percents( % ) ? I mean i have number a = 100 and number b = 20 the number b must be the % or a and return result ex. 80

2. what wrong i do here?

Serverside:

triggerClientEvent( root, "JobSystem.CreateCustomBlip", root, x, y, 18, 18, "images/medic.png" ) 

ClientSide:

addEvent("JobSystem.CreateCustomBlip", true) 
addEventHandler("JobSystem.CreateCustomBlip", root, 
    function ( x, y, w, h, pach ) 
        exports.customblips:createCustomBlip( x, y, w, h, path, 400 ) 
    end 
) 

ERROR saying Serverside trigger Clientside event JobSystem.CreateCustomBlip, but event is not added Clientside

Link to comment

Why the fuck you need it? o.O

you need the marker or any other shit?

function start() 
     marker = createMarker(1000, 1250.1, 13.6, "cylinder", 2, 25, 60, 95, 125) 
     triggerClientEvent( root, "JobSystem.CreateCustomBlip", root, 1000, 1250.1, 18, 18, "images/medic.png" ) 
end 
addEventHandler("onResourceStart", resourceRoot, start ) 

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