you are going to need to declare the xyz vectors for your players position independently, not as a single vector3 "player.character.position". Try using:
or if you want to set a place for the light to stay permanently, say in front of a door, you can place a permanent set of x,y,and z coordinates. Also, the light will not "stay on." It will only last as long as you hold the key OR you keep it on a tick without any type of timer / delay or it will only pop on for only one ms. Also, the R, G, B are all used to alter the color of the light.
| Native.Function.Call("DRAW_LIGHT_WITH_RANGE", 459.51, 323.2, 8.57, 250, 0, 10, 20.0F, 95.0F) |
this one makes a tombstone in the graveyard in the middle of the map glow bright red when left to run continuously, used it in my Jenny's Soul mission/Mod.
Here is a link to a pic if you want:Jenny's Soul