Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - MediumStare

#1
Scripting Help / Why cant i make blip? | JS
May 08, 2023, 08:22:50 AM
So i just wanna make a blip i can have on the minimap (also remove it later on such as when a player goes into a interior) Only problem code doesnt wanna work.
bindEventHandler("OnResourceStart", thisResource, (event,resource) => {
gta.createBlip(BLIP_ROMAN,[815.8858032226562,-274.563232421875,14.757908821105957],2,0);
var model = parseInt();
var romancar = gta.createVehicle(-1932515764,[810.32275390625,-266.7314147949219,14.848393440246582]);
addToWorld(romancar);

});
I tried using this
gta.createBlip(27,[815.8858032226562,-274.563232421875,14.757908821105957],2,0);that didnt work also tried the hexadecimal number but to no avail.
also tried putting the last 2 digits on a array didnt work.
Original code as on forum:
Blip gta.createBlip(int icon, Vec3 position, [ int size = 2, int colour = 0 ])I feel like i just missed a small thing i just dont know what.
i dont get any errors printed in the console but at same time i dont get any blips at the same time.